..\bin\openssl req -config openssl.cnf -new -out server.csr -keyout server.pem
..\bin\openssl rsa -in server.pem -out server.key
..\bin\openssl x509 -in server.csr -out server.cert -req -signkey server.key -days 999


Add the Certificate to Your Trusted Root Certificate Authorities (Local Testing Only)
To avoid the warning during local testing, add your self-signed certificate (server.cert) to your system's trusted root certificate authorities.

On Windows:

Open the Run dialog and type mmc, then press Enter.
Go to File > Add/Remove Snap-in.
Select Certificates and click Add.
Choose Computer Account > Local Computer, then click Finish.
Navigate to Trusted Root Certification Authorities > Certificates.
Right-click, choose All Tasks > Import, and import your server.cert.
restart apache

